package cn.edu.ctbu.controller.admin;

import cn.edu.ctbu.VO.ShopStatusVO;
import cn.edu.ctbu.result.Result;
import cn.edu.ctbu.service.IShopStatusService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("管理端店铺营业状态")
@RequestMapping("/admin/shopStatus/{status}")
@Api(tags = "管理端营业状态接口")
public class ShopStatusController {
    @Autowired
    IShopStatusService iShopStatusService;
    /**
     * 修改营业状态
     */
    @PutMapping
    public Result<ShopStatusVO> shopStatus(@PathVariable  Integer status){
        ShopStatusVO vo=iShopStatusService.updateStatus(status);
        return Result.success(vo);
    }



}
